﻿@model IEnumerable<AvaliacaoOnline.Data.Usuario>

@{
    ViewBag.Title = "Avaliação Online";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@section head{
<script type="text/javascript">
    $(function () {
        $("#grid tr:odd td").css("background-color", "white");
        $("#grid tr:even td").css("background-color", "transparent");
    });
</script>
}

<h3>Respostas da avaliação</h3>

<table border="0" cellpadding="0" cellspacing="0" style="width:100%" id="grid">
    <tr>
        <th style="width:20%">
            Titulo
        </th>
        @foreach (AvaliacaoOnline.Data.Questao questao in ((List<AvaliacaoOnline.Data.Questao>)ViewData["Questoes"]))
        {
        <th style="width:2%;">
            <span alt="@questao.Descricao" title="@questao.Descricao">@questao.Numero</span>
        </th>
        }
    </tr>

     @foreach (var item in Model)
     {
        <tr>
            <td>
                @item.Nome
            </td>
            @foreach (AvaliacaoOnline.Data.Questao questao in ((List<AvaliacaoOnline.Data.Questao>)ViewData["Questoes"]))
            {
            <td>
                X
            </td>
            }
        </tr>
     }
</table>